home *** CD-ROM | disk | FTP | other *** search
- #include "copyright.h"
- #include "port.h"
- #include "utility.h"
-
- /*
- * util_print_time -- massage a long which represents a time interval in
- * milliseconds, into a string suitable for output
- *
- * Hack for IBM/PC -- avoids using floating point
- */
-
- char *util_print_time(long t)
- {
- static char s[40];
-
- (void) sprintf(s, "%ld.%02ld sec", t/1000, (t%1000)/10);
- return s;
- }
- /*
- * util_strsav -- save a copy of a string
- */
- char *util_strsav(char *s)
- {
- return strcpy(ALLOC(char, strlen(s)+1), s);
- }
- /*
- * util_cpu_time -- return a long which represents the elapsed processor
- * time in milliseconds since some constant reference
- */
- long util_cpu_time()
- {
- //on Macs, it's meaningles
- return 42;//the meaning of life, universe and everything...
- }
-